<template>
  <div>
  <div>
    <a href="/login">点我跳转到登录界面</a>
    <a href="/register">点我跳转到注册界面</a>
  </div>
  <div>
    <router-view></router-view>
  </div>
  </div>
</template>

<script>
import Login from '@/view/Login.vue'
import Register from "@/view/Register.vue";

export default {
  name: 'HelloWorld',
  props: {
    msg: String
  },
  components: {
    Login,
    Register
  },
  methods:{
    test(){
      this.axios.get('http://localhost:8080/user/hello')
    },
    login(){
      this.$router.push('/login')
    },
    register(){
      this.$router.push('/register')
    }
  }

}
</script>

